home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’89 / gadlife / source (ugly) / patch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-01  |  776 b   |  32 lines  |  [TEXT/KAHL]

  1. #define SndPlayTrapNum        0x05
  2. #define PopUpTrapNum        0x0b
  3. #define DelayTrapNum        0x3b
  4. #define WNETrapNum        0x60
  5. #define UnImplTrapNum        0x9f
  6. #define ScriptsTrapNum        0xb5
  7. #define CopyBitsTrapNum        0xec
  8. #define DragGrayTrapNum    0x105
  9. #define DragWTrapNum        0x125
  10. #define DragTheTrapNum        0x126
  11. #define GrowWTrapNum        0x12b
  12. #define AvailTrapNum        0x171
  13. #define GetMouseTrapNum    0x172
  14. #define StillDownTrapNum    0x173
  15. #define ModalTrapNum        0x191
  16. #define SysMenuTrapNum        0x1b5
  17.  
  18. #define filterPatchID            128
  19. #define replacePatchID        129
  20. #define eitherPatchID        130
  21.  
  22. #define patchReturn            0        /* assembly code depends on these */
  23. #define patchContinue        1
  24.  
  25. typedef struct patch {
  26.     int        branch;
  27.     int        count;
  28.     long        original;
  29.     long        oldPatch;
  30.     long        patch;
  31.     long        myA5;
  32. } patch, *patchPtr, **patchHandle;